<template>
    <el-button type="primary" class="smart" style="margin-left: 16px" @click="drawer = true">
      智能小爱
    </el-button>
  
    <el-drawer v-model="drawer" title="I am the title" :with-header="false">
      <talk/>
    </el-drawer>
  </template>
  
  <script lang="ts" setup>
  import talk from "@/components/Main/MainView/talk.vue"

  import { ref } from 'vue'
  const drawer = ref(false)
  </script>

  <style scoped>
    .smart{
        position: fixed;
        transition: right 0.3s;
        top: 200px;
        right: -10px; /* 初始状态隐藏在窗口边缘 */
        z-index: 100;
    }
  </style>